package com.ease.map.handler.feature.draw.snap {
   import com.kgis.flexutil.collections.HashMap;
   import com.kgis.flexutil.collections.Map;
   import com.ease.map.feature.Feature;
   import com.ease.map.geometry.IGeometry;
   import com.ease.map.geometry.PointGeometry;
   import com.ease.map.handler.feature.draw.snap.SnapTypeEnum;
   import com.ease.map.layer.FeatureLayer;
   
   import mx.collections.ArrayCollection;

   /**
    * 捕捉返回值类
    */
   public class SnapReturn {
      /**捕捉类型0表示捕捉不到，1表示捕捉到顶点，2表示捕捉到线上点*/
      public var snapType:int;

      /**捕捉点坐标*/
      public var snapPoint:PointGeometry;

      /**屏幕上鼠标点的屏幕x坐标*/
      public var stageX:Number;

      /**屏幕上鼠标点的屏幕x坐标*/
      public var stageY:Number;

      /**鼠标所在点到实际点的距离*/
      public var nDist:Number = 9999999999;

      /**捕捉到的Feature对象*/
      public var snapFeature:Feature = null;
	  
	  public var snapFeatures:ArrayCollection = null;

	  /**捕捉到的Feature集合对象*/
	  public var snapFeaturesMapList:ArrayCollection=null;
	  
	  public var snapLayer:FeatureLayer=null;

	  public var snapMap:HashMap=null;
      public function SnapReturn() {
         this.snapType = SnapTypeEnum.NO_SNAPS;
		 this.snapFeatures=new ArrayCollection();

      }

   /**
    * 初始化
    */
//		public function Init():void
//		{
//			snapType =SnapTypeEnum.NO_SNAPS;
//			stageX =-9999999999;
//			stageY =-9999999999;
//			nDist = 9999999999;
//			snapFeature = null;
//		}
   }
}